package com.laizhenghua.share.order.api;

import com.laizhenghua.share.common.core.constant.ServiceNameConstants;
import com.laizhenghua.share.common.core.domain.R;
import com.laizhenghua.share.order.api.domain.entity.OrderInfo;
import com.laizhenghua.share.order.api.factory.RemoteOrderServiceFallbackFactory;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * TODO
 *
 * @Description
 * @Author laizh
 * @Date 2025/10/29 20:05
 **/
@FeignClient(contextId = "remoteOrderService", value = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = RemoteOrderServiceFallbackFactory.class)
public interface RemoteOrderService {
    @Operation(summary = "获取未完成的的订单")
    @GetMapping("/order-info/find/not-finish")
    R<OrderInfo> findNotFinishOrder();

    @Operation(summary = "订单创建")
    @GetMapping("/order-info/create")
    R<?> create();
}
